-- GENERATED SPELL FOR [Plagued Scavenger] --


function spell0_25650(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(49861,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25650', 8000, 1)
end

function Sorts_25650(pUnit, Event)
local choix_sorts_25650 = math.random(0, 0)
if choix_sorts_25650 == 0 then
pUnit:RegisterEvent('spell0_25650', 1, 1)
end
end

function mob25650_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25650', math.random(1500, 3000), 1)
end

function mob25650_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25650_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25650_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25650, 1, 'mob25650_Action')
RegisterUnitEvent(25650, 2, 'mob25650_Leave')
RegisterUnitEvent(25650, 3, 'mob25650_Kill')
RegisterUnitEvent(25650, 4, 'mob25650_Die')
